[slug].vue 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <script lang='ts' setup>
  2. import { useCommonStore } from '@/stores/modules/common'
  3. import { Condition } from '@/enums/const-enums'
  4. const commonStore = useCommonStore()
  5. const list = [
  6. {
  7. id: '1930872642297643010',
  8. title: 'Stationary & Office Supplies',
  9. subhead: 'Discover bestsellers and fresh arrivals tailored to your niche.',
  10. coverImg: 'https://picsum.photos/560/310',
  11. coverAlt: 'https://picsum.photos/560/310',
  12. pdf: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  13. viewPdf: 'https://static.ejetselection.com/temp/baozhen_1748937135247.pdf',
  14. // pdfUrl: 'https://static.ejetselection.com/temp/导入模板2222_1736660213488.xlsx',
  15. downloadCondition: Condition.DOWNLOAD, // 下载条件 1是登录后下载 2是登录后申请下载
  16. blogSlug: 'stationary-office-supplies',
  17. },
  18. {
  19. id: '1934486796128428033',
  20. billNo: 'ML000004',
  21. title: '目录册标题',
  22. subhead: '副标题',
  23. category: '1933455277679104002',
  24. downloadCondition: '1',
  25. trend: '1',
  26. state: '1',
  27. coverImg: 'https://static.ejetselection.com/temp/微信图片_20250530110533_1750052537617.jpg',
  28. coverAlt: 'alt',
  29. viewPdf: 'https://static.ejetselection.com/temp/新建DOCX文档_1750052562044.pdf',
  30. pdf: 'https://static.ejetselection.com/temp/新建DOCX文档_1750052566275.pdf',
  31. createBy: '王亮',
  32. createTime: '2025-06-16 13:42:48',
  33. updateBy: '王亮',
  34. updateTime: '2025-06-16 13:43:00',
  35. blogSlug: null,
  36. category_dictText: 'TREND TOYS',
  37. category_dictColor: 'null',
  38. },
  39. ]
  40. const { openLoginAndDownloadModal } = useLoginAndDownLoadModal()
  41. async function clickLoginAndDownload(item: any) {
  42. try {
  43. commonStore.setDownloadCatalog(item)
  44. const { status } = await openLoginAndDownloadModal()
  45. if (status)
  46. location.reload()
  47. }
  48. catch (error) {
  49. console.log(error)
  50. }
  51. }
  52. </script>
  53. <template>
  54. <div>
  55. <div class=" bg-#0F0820">
  56. <div class="header w-1200-auto text-center flex items-center justify-center h-600px bg-no-repeat bg-center" style="background-image: url('https://picsum.photos/420/420')">
  57. <h1 class="text-58px fw-800 text-#fff ls-2 custom-title-font">
  58. STATIONARY & OFFICE SUPPLIES
  59. </h1>
  60. </div>
  61. </div>
  62. <div class="py-120px w-1200-auto text-center">
  63. <h2 class="text-36px fw-800 text-#333 !mb-20px custom-title-font">
  64. Our Latest Product <span class="custom-title-bg04">Catalogs</span>
  65. </h2>
  66. <div class="text-#999 text-22px mb-40px">
  67. Discover bestsellers and fresh arrivals tailored to your niche.
  68. </div>
  69. <div class="grid grid-cols-2 gap-64px text-left">
  70. <div v-for="item in list" :key="item.id">
  71. <business-categories-comp-item :item="item" @select="clickLoginAndDownload" />
  72. </div>
  73. </div>
  74. </div>
  75. <common-block-catalogs />
  76. <common-block-blog class="!pb-0" />
  77. <AppFooter />
  78. </div>
  79. </template>
  80. <style lang='less' scoped>
  81. .header{
  82. background-position: 50% 75%;
  83. }
  84. </style>